# coding:utf-8
'''
Created on 2010-1-2

@author: Jason Green
@author-email: guileen@gmail.com
'''
from django.db import models

class TimeCost(models.Model):
    method_name = models.CharField("Method Name",max_length=255)
    request_id = models.CharField("Request ID",max_length=255)
    request_url = models.CharField("Url",max_length=500)
    request_method = models.CharField("Request Method",max_length=10)
    request_object = models.TextField("Request Object")
    response_object = models.TextField("Response Object")
    user = models.CharField("Operate User",max_length=255)
    is_ajax = models.BooleanField("AJAX")
    create_time = models.DateTimeField("Create Time",auto_now_add=True)
    elapsed_time   = models.FloatField("Millisecond")
    args = models.TextField("args",blank=True,null=True)
    kwargs = models.TextField("kwargs",blank=True,null=True)